package org.starapp.rbac.data;

import org.starapp.andriod.entity.Task;
import org.starapp.rbac.entity.Users;

import org.starapp.test.data.RandomData;

/**
 * Task相关实体测试数据生成.
 * 
 * @author calvin
 */
public class TaskData {

	public static Task randomTask() {
		Task task = new Task();
		task.setTitle(randomTitle());
		Users user = new Users();
		user.setUserId("cctv");
		user.setUserName("cctv");
		//task.setUser(user);
		return task;
	}

	public static String randomTitle() {
		return RandomData.randomName("Task");
	}
}
